/*
 * @Descripttion: 
 * @version: 外接资源管理
 * @Author: 自己洗小红花
 * @Date: 2019-09-20 16:15:48
 */
export const ExternalManagement = [
  //  元数据注册
  {
    name: 'MetadataRegistration',
    path: 'MetadataRegistration',
    meta: {
      requiresAuth: true // 说明需要鉴权
    },
    component: resolve => require(["@/views/ExternalManagement/MetadataRegistration/MetadataRegistrationLogic"], resolve),
  },
  //  元数据维护
  {
    name: 'maintenance',
    path: 'maintenance',
    meta: {
      requiresAuth: true // 说明需要鉴权
    },
    component: resolve => require(["@/views/ExternalManagement/maintenance/maintenanceLogic"], resolve),
  },
  //  元数据类型
  {
    name: 'metadataType',
    path: 'metadataType',
    meta: {
      requireAuth: true
    },
    component: resolve => require(["@/views/ExternalManagement/metadataType/metadataTypeLogic"], resolve)
  },
  //  元模型管理
  {
    name: 'MetamodelManagement',
    path: 'MetamodelManagement',
    meta: {
      requireAuth: true
    },
    component: resolve => require(["@/views/ExternalManagement/MetamodelManagement/MetamodelManagementLogic"], resolve)
  },
  //  流程管理
  {
    name: 'ProcessManagementHost',
    path: 'ProcessManagementHost',
    meta: {
      requireAuth: true
    },
    redirect: '/frame/ProcessManagementHost/ProcessManagementLogic',
    component: resolve => require(["@/views/ExternalManagement/ProcessManagement/ProcessManagementHost"], resolve),
    children: [{
        name: 'ProcessManagementLogic',
        path: 'ProcessManagementLogic',
        component: resolve => require(["@/views/ExternalManagement/ProcessManagement/ProcessManagementLogic"], resolve)
      },
      // 新增页
      {
        name: 'operationPage',
        path: 'operationPage',
        component: resolve => require(["@/views/ExternalManagement/ProcessManagement/components/operationPage"], resolve)
      },
      // 版本管理页
      {
        name: 'versionManagement',
        path: 'versionManagement',
        component: resolve => require(["@/views/ExternalManagement/ProcessManagement/components/versionManagement"], resolve)
      },
      // 流程-查看详情页 
      {
        name: 'searchDetail',
        path: 'searchDetail',
        component: resolve => require(["@/views/ExternalManagement/ProcessManagement/components/searchDetail"], resolve)
      },
      // 流程节点-查看详情页 
      {
        name: 'searchNodeDetail',
        path: 'searchNodeDetail',
        component: resolve => require(["@/views/ExternalManagement/ProcessManagement/components/searchNodeDetail"], resolve)
      },
      // 流程-修改页 
      {
        name: 'updatePage',
        path: 'updatePage',
        component: resolve => require(["@/views/ExternalManagement/ProcessManagement/components/updatePage"], resolve)
      },
      // 流程节点-修改页 
      {
        name: 'updateNodeDetail',
        path: 'updateNodeDetail',
        component: resolve => require(["@/views/ExternalManagement/ProcessManagement/components/updateNodePage"], resolve)
      },

    ]
  },

  //  流程管理[新]
  {
    name: 'ProcessManagement',
    path: 'ProcessManagement',
    meta: {
      requireAuth: true
    },
    component: resolve => require(["@/views/ExternalManagement/ProcessManagement/index"], resolve)
  },
];

// name: 'ProcessManagement',
// path: 'ProcessManagement',
// meta: {
//   requireAuth: true
// },

// component: resolve => require(["@/views/ExternalManagement/ProcessManagement/ProcessManagementLogic"], resolve),
// children: [
//   //  我注册的服务
//   {
//     path: "operationPage",
//     name: "operationPage",
//     component: resolve =>
//       require([
//         "@/views/ExternalManagement/ProcessManagement/components/operationPage"
//       ], resolve)
//   },
// ]
